<?php
OCP\App::checkAppEnabled('resumes');

if(OC_User::isLoggedIn()) {
   if(PFactory::isMasterUser())
      JRequest::setVar('dir', 'all');
   else 
      JRequest::setVar('dir', 'shared');
   PResumesController::folder();
}
else {
   OC_Response::redirect(OC_Helper::linkToRoute("company_login"));
}
